package com.wx.tnsenterprise.mapper;

import com.wx.tnsenterprise.model.po.RecruitPo;
import com.wx.tnsenterprise.model.dto.RecruitDto;
import com.wx.tnsenterprise.model.vo.RecDetailVo;
import com.wx.tnsenterprise.model.vo.RecNavVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 林建权
 * @version 1.0
 * @date 2020/7/28 16:56
 */
@Mapper
public interface RecruitMapper {
    List<RecruitPo> findAll();

    int insert(RecruitPo recruitPo);

    int update(RecruitPo recruitPo);

    int delete(Integer id);

    int insertByRecVo(RecruitDto recruitDto);

    List<RecruitPo> findHotRec(Integer length);

    List<RecNavVo> findRecByFunnel(RecruitPo recruitPo);

    List<String> findRecHotCity(Integer length);

    List<Integer> findRecHotJob(Integer length);

    List<String> findRecHotEnt(Integer length);

    RecDetailVo recDetail(Integer id);

    RecruitPo findById(Integer id);
}
